<?php

namespace App\Models\File;

use App\Models\BaseModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class FileProcessingModel extends BaseModel
{
    use HasFactory;

    protected $table = 'file_processing';

    protected $fillable = [
        'type',
        'processingType',
        'beforeUri',
        'afterUri',
        'status',
        'createdAt',
        'createdByUid',
        'updatedAt',
        'updatedByUid',
    ];


    /**
     * type
     */
    const TYPE_IMAGE = 1;
    const TYPE_VIDEO = 2;


    /**
     * processingType
     */
    const PROCESSING_TYPE_DEFAULT   = 0;
    const PROCESSING_TYPE_WATERMARK = 1;  // 加水印


    /**
     * status
     */
    const STATUS_DEFAULT = 0;
    const STATUS_FINISH  = 1;  // 完成

}
